package edu.gatech.foodaway;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class RestaurantInfoActivity extends Activity {
	TextView txt_rname;
	ImageView img_rimage;
	ListView foodPostedList;
	Button btn_request;
	TextView txt_quickInfo;
	
	public String[] mockPostedFoodList = {"Burger","Hotdog","Mixed Veggies"};
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_restaurant_info);
		Intent i = getIntent();
		Bundle stuff = i.getExtras();
		String rname = stuff.getString(NGOHomeActivity.RESTAURANT_NAME);
		txt_rname = (TextView) findViewById(R.id.textView_restaurantname);
		img_rimage = (ImageView) findViewById(R.id.imageView_restauranticon);
		foodPostedList = (ListView) findViewById(R.id.listView_foodfromrestaurant);
		btn_request = (Button)findViewById(R.id.btn_sendrequest);
		txt_quickInfo = (TextView) findViewById(R.id.textView_quickinfo);
		//later replace by database stuff
		txt_rname.setText(rname);
		foodPostedList.setAdapter(new ArrayAdapter<String>(RestaurantInfoActivity.this,android.R.layout.simple_list_item_1, mockPostedFoodList ){
			
		});
			
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.restaurant_info, menu);
		return true;
	}

}
